package demo.pattern.factory.method;

import demo.pattern.factory.entity.Mouse;

/**
 * @ClassName FactoryMethodDemo
 * @Description
 * @Author 47980
 * @Date 2020/6/10 20:12
 * @Version V_1.0
 **/
public class FactoryMethodDemo {
    public static void main(String[] args) {
        MouseFactory mf = new HpMouseFactory();
        Mouse mouse = mf.createMouse();
        mouse.sayHi();
    }
}
